package dao;

import bean.User;

import java.util.List;
/**
 * by 黄智宏
 * 对用户的操作
 * */
public interface UserDao {
    List<User> getAll();
    void insertUser(User user);
    User getUserByUsername(String username);
    User getUserByUserId(int userId);

    void deleteUser(int userId);
    void updateUser(User user);
    boolean register(User user);
    User login(String username, String password);
}
